package com.aitoedu.server.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

@Accessors(chain = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class OnlyTitleVO {
    @Schema(description = "对话标识id")
    private Long titleId;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "对话创建日期")
    @JsonFormat(pattern = "yyyy.M.d HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime titleCreateTime;

    @Schema(description = "总数")
    private Integer total;

    @Schema(description = "1为收藏,0为未收藏")
    private Integer save;

    @Schema(description = "具体对话内容")
    private List<OnlyConversationVO> onlyConversationVOList;
}
